import {FormRuleUtil} from "@/utils";


export const AGREEMENT_EDIT = {
    BODY: {
        code: null,
        title: null,
        content: '',

    },
    RULES: {
        code: FormRuleUtil.strRule("协议代码", true, 30, "abc"),
        title: FormRuleUtil.strRule("协议标题", true, 100),
        content: FormRuleUtil.strRule("协议内容", true),

    }
}


export const STRATEGY_EDIT = {
    BODY: {
        title: '',
        kind: '',
        banner: '',
        sort: 50,
        content: '',

    },
    RULES: {
        title: FormRuleUtil.strRule("攻略标题", true, 50),
        banner: FormRuleUtil.strRule("攻略BANNER图", true, 400),
        kind: FormRuleUtil.strRule("攻略分类", true, 30),
        sort: FormRuleUtil.numRule("显示排序值", true),
        content: FormRuleUtil.strRule("攻略正文", true),

    }
}


export const ESSAY_EDIT = {
    BODY: {
        digest: null,
        title: null,
        content: '',
        scope:null ,

    },
    RULES: {
        title: FormRuleUtil.strRule("文章标题", true, 100),
        scope: FormRuleUtil.strRule("用户对象", true, 30),
        digest: FormRuleUtil.strRule("文章摘要", true, 200),
        content: FormRuleUtil.strRule("协议内容", true),

    }
}



